
using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(UGUITweenX))]
public class UGUITweenXEditor : UGUITweenerEditor
{
	public override void OnInspectorGUI ()
	{
		GUILayout.Space(6f);
		UGUIEditorTools.SetLabelWidth(120f);

        UGUITweenX tx = target as UGUITweenX;
		GUI.changed = false;

		float from = EditorGUILayout.FloatField("From", tx.from);
        float to = EditorGUILayout.FloatField("To", tx.to);

		if (GUI.changed)
		{
			UGUIEditorTools.RegisterUndo("Tween Change", tx);
			tx.from = from;
			tx.to = to;
			UGUITools.SetDirty(tx);
		}

		DrawCommonProperties();
	}
}
